﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using RoadTeam.SysInterface;

namespace RoadTeam.BLL.FM
{
    public class FMMeterDegree
    {
        public DataTable GetMeterDegree(string OrganIdentitifer, int PageSize, int CurrentPage, int AllCount)
        {
            String OrganID = FactoryClass.CreateSmOrgan().GetOraganID(OrganIdentitifer);
            return FactoryClass.CreateMeterDegree().GetMeterDegree(OrganID, PageSize, CurrentPage, AllCount);
        }

        public int GetMeterDegreeCount(String OrganIdentitifer)
        {
            String OrganID = FactoryClass.CreateSmOrgan().GetOraganID(OrganIdentitifer);
            return FactoryClass.CreateMeterDegree().GetMeterDegreeCount(OrganID);
        }
        public DataTable GetMeterDegree(String StrDegreeID)
        {
            return FactoryClass.CreateMeterDegree().GetMeterDegree(StrDegreeID);
        }

        public bool UpdateMeterDegree(DataTable dt)
        {
            return FactoryClass.CreateMeterDegree().UpdateMeterDegree(dt);
        }
    }
}
